"""
模块-serializer : TODO
@Author         : Nengdu
@Version        : V 1.0.0
@CreateTime     : 2020/6/9 10:53
-------------------------
"""

from rest_framework import serializers
from .models import Goods

class MoreListSerializer(serializers.ModelSerializer):
    # Goods的序列化
    class Meta:
        model = Goods
        fields = "__all__"  # 模型中的所有字段
        # fields = ["id", "g_name", "g_price"]  # 模型中的部分字段